package cn.yudao.ymcc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = "cn.yudao")
@EnableDiscoveryClient
@MapperScan("cn.yudao.ymcc.mapper")
@EnableCaching
@EnableFeignClients
@EnableTransactionManagement // 开启事务管理器
public class ServiceCourseStarter {

    public static void main(String[] args) {
        SpringApplication.run(ServiceCourseStarter.class,args);
    }

}
